import request from '@/request/request'
// 获取我的消息列表
export function getMsgAll(params) {
    return request({
        url: '/dev-api/news/siteNews/findByLoginUser',
        method: 'get',
        params
    })
}
// 将消息修改未已读状态
export function getMsgRead(id) {
    return request({
        url: '/dev-api/news/siteNews/setRead/'+id,
        method: 'post',
    })
}
// 最新咨询十条列表
export function getShishu(params) {
    return request({
        url: '/dev-api/policy/notice/newList',
        method: 'get',
        params
    })
}
// 全部已读
export function allRead(data) {
    return request({
        url: '/dev-api/news/siteNews/allReadOn',
        method: 'post',
        data
    })
}

// 删除消息
export function getMsgDelete(id) {
    return request({
        url: '/dev-api/news/siteNews/batch/'+id,
        method: 'delete',
    })
}